/**
 * Created by zhaomi on 16/5/20.
 */
var conn=require('../conf/mysql')
module.exports={
    end_class:function(course_table_id,cb){
        var options={
            sql: 'update classroom_course_table set is_end=true where id=?',
            params: [course_table_id],
            handle: function(results){
                cb(results)
            }
        }
        conn.execQuery(options)
    },
    is_end_class:function (course_table_id,cb) {
        var options={
            sql: 'select is_end from classroom_course_table where id=?',
            params: [course_table_id],
            handle: function(results){
                cb(results)
            }
        }
        conn.execQuery(options)
    }
}